package sicau.carManager.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Author ITcz
 * @Data 2021-03-05 - 16:53
 */
@Configuration
public class ApplicationContextConfig {
        //给IOC容器中注入RestTemplate类
        @Bean("restTemplate")
        public RestTemplate getRestTemplate(){
            return new RestTemplate();
        }

}
